<div class="storywrap">
    <div class="sectiontitle">
        <%= render(:partial => 'links')%>
        <%= link_to "#{@story.title}", {# link_to options
                    :controller => 'story',
                    :action => 'view',
                    :id => @story.id
                    } %>
        
    </div>
    
    <div class="storydetails">
        <strong>Authored by:</strong><br/>
        <%= if @story.user == session[:user]
            "You"
           else
            "#{@story.user.first_name} #{@story.user.last_name} (#{@story.user.login})"
           end %><br/>
        <strong>Created:</strong> <%= h(@story.created_at.strftime(" %m/%d/%Y")) %>
        <%= if @story.updated_at then "<br/><strong>Modified:</strong> #{h(@story.updated_at.strftime(' %m/%d/%Y'))}" end %>
    </div>
    
    <div class="storybody">
    
        <%= @story.body.gsub(/\n/, "<br/>") %>
        
    </div>
    <div class="storyfooter">
        <%= render(:partial => 'categories')%>
    </div>        
</div>